import React from 'react';
import {createRoot} from 'react-dom/client';
import App from './App';
import "./assets/css/main.css";
import {store} from "./redux/index.ts"
import { Provider } from 'react-redux';
import { BrowserRouter} from 'react-router';
import RouteGrand from "./privates/RouteGrand.tsx"

const domNode = document.getElementById("root") as HTMLElement;
const root = createRoot(domNode); 

root.render(
    <BrowserRouter>
        <Provider store={store}>
            <RouteGrand>
                <App />
            </RouteGrand>
        </Provider>
    </BrowserRouter>
);


